﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Utils.DT;
namespace GastosService
{
    public static class MappingModelObjecstAndDomainObjects
    {

        #region Model to Domain Objects
        public static DTConcepto GetConceptoDomain(Concepto concepto)
        {
            return new Utils.DT.DTConcepto() {IdConcepto=concepto.IdConcepto, Concepto= concepto.NombreConcepto };
        }

       
        #endregion

        #region Domain to Model
        public static Concepto GetConceptoModel(DTConcepto concepto)
        {
            return new Concepto() { Descripcion=concepto.Descripcion, NombreConcepto=concepto.Concepto };
        }
        #endregion

    }
}